﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Office.Interop.Word;

namespace WFL.Office.Word
{
    public class WordPageNumbers
    {
        public WordPageNumber this[int index]
        {
            get { return new WordPageNumber(_pageNumbers[index]); }
        }

        private PageNumbers _pageNumbers;

        internal WordPageNumbers(PageNumbers pageNumbers)
        {
            _pageNumbers = pageNumbers;
        }

        public WordPageNumber Add(PageNumberAlignment? pageNumberAlignment = null, bool? firstPage = null)
        {
            object pageNumberAlignmentArg = pageNumberAlignment ?? Type.Missing;
            object firstPageArg = firstPage ?? Type.Missing;
            return new WordPageNumber(_pageNumbers.Add(pageNumberAlignmentArg, firstPageArg));
        }
    }
}
